package com.zl.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "dog")
public class Dog {
    //@Value("小狗")
    private String name;
    //@Value("2")
    private Integer age;
}
